 import api from '@/common/api.js'

export default {
	async getUserInfo({commit}){
		let res=await api.user_api.userprofile(); 
		if(res.data.code==0){
			uni.setStorage({
				key:'userInfo',
				data:res.data.data
			})
		}
		commit('SET_USERINFO',res.data.data)
	} 
	 
}
